/**
 * 枚举
 */
// 通过枚举属性访问，和枚举的名字访问枚举类型
var ResponseTo1;
(function (ResponseTo1) {
    ResponseTo1[ResponseTo1["no"] = 1] = "no";
    ResponseTo1[ResponseTo1["yes"] = 2] = "yes";
})(ResponseTo1 || (ResponseTo1 = {}));
function respond(recipient, message) {
    console.log(recipient);
    console.log(message);
    console.log(ResponseTo1[1]);
    var res = 3;
    console.log(res);
}
respond("Princess Caroline", ResponseTo1.yes);
